package ltd.jdsoft.cute.perm.model;

import java.io.Serializable;

import org.apache.ibatis.type.Alias;

@Alias("User")
public class User implements Serializable {

  private static final long serialVersionUID = -8511841480162915447L;

  private long id;
  // 登录用户名
  private String loginName;
  // 密码
  private String password;
  // 归属的接入方id
  private long orgId;
  // 角色id
  private long roleId;
  // 用户类型
  private int type = TYPE_USER;

  // 管理员
  public static final int TYPE_ADMIN = 0;
  // 普通用户
  public static final int TYPE_USER = 1;
  // 代理
  public static final int TYPE_AGENT = 2;

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public String getLoginName() {
    return loginName;
  }

  public void setLoginName(String loginName) {
    this.loginName = loginName;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public long getOrgId() {
    return orgId;
  }

  public void setOrgId(long orgId) {
    this.orgId = orgId;
  }

  public long getRoleId() {
    return roleId;
  }

  public void setRoleId(long roleId) {
    this.roleId = roleId;
  }

  public int getType() {
    return type;
  }

  public void setType(int type) {
    this.type = type;
  }
}
